Skip to content

Commit

Permalink
use name instead of default_name to fix device
Browse files Browse the repository at this point in the history
  • Loading branch information
liangleslie committed Aug 20, 2023
1 parent 0f26b97 commit 0f1ef8b
Show file tree
Hide file tree
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
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions custom_components/nea_sg_weather/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/nea_sg_weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0f1ef8b

Please sign in to comment.