Skip to content

Commit

Permalink
Merge pull request #14 from Ernst79/bug_fixes
Browse files Browse the repository at this point in the history
fix some bugs
  • Loading branch information
Ernst79 authored Feb 16, 2023
2 parents 321a88c + b298e4f commit e07389b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/degree_days/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
coordinator = DegreeDaysData(hass, entry)
await coordinator.async_config_entry_first_refresh()
hass.data.setdefault(DOMAIN, {})[entry.entry_id] = coordinator
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
return True


Expand Down
4 changes: 2 additions & 2 deletions custom_components/degree_days/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class DegreeDaysSensorEntityDescription(SensorEntityDescription):
icon="mdi:thermometer",
native_unit_of_measurement=TEMP_CELSIUS,
device_class=None,
state_class=SensorStateClass.TOTAL,
state_class=SensorStateClass.TOTAL_INCREASING,
),
DegreeDaysSensorEntityDescription(
key="weighted_degree_days_year",
Expand All @@ -144,7 +144,7 @@ class DegreeDaysSensorEntityDescription(SensorEntityDescription):
icon="mdi:fire",
native_unit_of_measurement=VOLUME_CUBIC_METERS,
device_class=SensorDeviceClass.GAS,
state_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.TOTAL,
),
DegreeDaysSensorEntityDescription(
key="gas_prognose",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/degree_days/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"documentation": "https://www.home-assistant.io/integrations/degree_days",
"codeowners": ["@Ernst79", "@nelbs"],
"requirements": [],
"version": "0.8.0",
"version": "0.9.0",
"iot_class": "cloud_polling"
}

0 comments on commit e07389b

Please sign in to comment.