VEML6075 expects map

master
Stefan Haslinger 2022-03-21 14:36:59 +01:00
parent d576ef6233
commit b194dc0279
1 changed files with 1 additions and 10 deletions

View File

@ -1,6 +1,5 @@
defmodule SensorHub.Application do
use Application
alias SensorHub.Sensor
@impl true
def start(_type, _args) do
@ -17,18 +16,10 @@ defmodule SensorHub.Application do
[
{SGP30, []},
{BMP280, [i2c_address: 0x77, name: BMP280]},
{VEML6075, []}
{VEML6075, %{}}
]
end
defp sensors do
[Sensor.new(BMP280), Sensor.new(VEML6075), Sensor.new(SGP30)]
end
defp weather_tracker_url do
Application.get_env(:sensor_hub, :weather_tracker_url)
end
def target() do
Application.get_env(:sensor_hub, :target)
end