Skip to content

Commit

Permalink
Remove deprecated asyncio.coroutine decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
amaximus committed Jun 8, 2023
1 parent a80dd94 commit 09b6d7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion custom_components/radioactivity_hu/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Radioactivity Hungary",
"documentation": "https://github.com/amaximus/radioactivity_hu",
"issue_tracker": "https://github.com/amaximus/radioactivity_hu/issues",
"version": "0.3.2",
"version": "0.4.0",
"dependencies": [],
"codeowners": ["@amaximus"],
"iot_class": "cloud_polling",
Expand Down
5 changes: 1 addition & 4 deletions custom_components/radioactivity_hu/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import json
import logging
import voluptuous as vol
Expand Down Expand Up @@ -32,8 +31,7 @@
vol.Optional(CONF_STATION, default=DEFAULT_STATION): cv.string,
})

@asyncio.coroutine
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
async def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
name = config.get(CONF_NAME)
station = config.get(CONF_STATION)

Expand Down Expand Up @@ -68,7 +66,6 @@ def extra_state_attributes(self):

return self._attr

@asyncio.coroutine
async def async_update(self):
wqdata = await async_get_wqdata(self)
max_state = 0
Expand Down
6 changes: 3 additions & 3 deletions tracker.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"anniversary": {
"version": "0.3.2",
"updated_at": "2022-12-14",
"version": "0.4.0",
"updated_at": "2023-06-08",
"visit_repo": "https://github.com/amaximus/radioactivity_hu",
"changelog": "https://github.com/amaximus/radioactivity_hu/releases/0.3.2"
"changelog": "https://github.com/amaximus/radioactivity_hu/releases/0.4.0"
}
}

0 comments on commit 09b6d7a

Please sign in to comment.