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 adbaf7a commit 2420462
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion custom_components/water_quality_fvm/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Water Quality FVM",
"documentation": "https://github.com/amaximus/water_quality_fvm",
"issue_tracker": "https://github.com/amaximus/water_quality_fvm/issues",
"version": "0.1.0",
"version": "0.2.0",
"dependencies": [],
"codeowners": ["@amaximus"],
"iot_class": "cloud_polling",
Expand Down
5 changes: 1 addition & 4 deletions custom_components/water_quality_fvm/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 @@ -30,8 +29,7 @@
vol.Required(CONF_REGION, default=DEFAULT_REGION): 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)
region = config.get(CONF_REGION)

Expand Down Expand Up @@ -119,7 +117,6 @@ def extra_state_attributes(self):
attr["provider"] = CONF_ATTRIBUTION
return attr

@asyncio.coroutine
async def async_update(self):
wqdata = await async_get_wqdata(self)
out_of_range = 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.1.0",
"updated_at": "2021-12-23",
"version": "0.2.0",
"updated_at": "2023-06-08",
"visit_repo": "https://github.com/amaximus/water_quality_fvm",
"changelog": "https://github.com/amaximus/water_quality_fvm/releases/0.1.0"
"changelog": "https://github.com/amaximus/water_quality_fvm/releases/0.2.0"
}
}

0 comments on commit 2420462

Please sign in to comment.