Skip to content

Commit

Permalink
Merge pull request #17 from acidpizza/fix_device_info
Browse files Browse the repository at this point in the history
use name instead of default_name to fix device
liangleslie authored Aug 20, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents e767734 + 2a5923a commit 98d6162
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/nea_sg_weather/camera.py
Original file line number Diff line number Diff line change
@@ -206,7 +206,7 @@ def extra_state_attributes(self) -> dict:
def device_info(self) -> DeviceInfo:
"""Device info."""
return DeviceInfo(
default_name="Weather forecast coordinator",
name="Weather forecast coordinator",
identifiers={(DOMAIN,)}, # type: ignore[arg-type]
manufacturer="NEA Weather",
model="data.gov.sg API Polling",
6 changes: 3 additions & 3 deletions custom_components/nea_sg_weather/sensor.py
Original file line number Diff line number Diff line change
@@ -123,7 +123,7 @@ def extra_state_attributes(self) -> dict:
def device_info(self) -> DeviceInfo:
"""Device info."""
return DeviceInfo(
default_name="Weather forecast coordinator",
name="Weather forecast coordinator",
identifiers={(DOMAIN,)}, # type: ignore[arg-type]
manufacturer="NEA Weather",
model="data.gov.sg API Polling",
@@ -195,7 +195,7 @@ def extra_state_attributes(self) -> dict:
def device_info(self) -> DeviceInfo:
"""Device info."""
return DeviceInfo(
default_name="Weather forecast coordinator",
name="Weather forecast coordinator",
identifiers={(DOMAIN,)}, # type: ignore[arg-type]
manufacturer="NEA Weather",
model="data.gov.sg API Polling",
@@ -286,7 +286,7 @@ def extra_state_attributes(self) -> dict:
def device_info(self) -> DeviceInfo:
"""Device info."""
return DeviceInfo(
default_name="Weather forecast coordinator",
name="Weather forecast coordinator",
identifiers={(DOMAIN,)}, # type: ignore[arg-type]
manufacturer="NEA Weather",
model="data.gov.sg API Polling",
2 changes: 1 addition & 1 deletion custom_components/nea_sg_weather/weather.py
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ def extra_state_attributes(self) -> dict:
def device_info(self) -> DeviceInfo:
"""Device info."""
return DeviceInfo(
default_name="Weather forecast coordinator",
name="Weather forecast coordinator",
identifiers={(DOMAIN,)}, # type: ignore[arg-type]
manufacturer="NEA Weather",
model="data.gov.sg API Polling",

0 comments on commit 98d6162

Please sign in to comment.