Skip to content

Commit

Permalink
Merge pull request #85 from codyc1515/device_name
Browse files Browse the repository at this point in the history
Fix implicitly using device name by not setting its name
  • Loading branch information
Arbuzov authored Oct 25, 2023
2 parents b3dfa5b + 56b63d8 commit 497c5b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion custom_components/delonghi_primadonna/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ async def async_setup_entry(


class DelongiPrimadonnaDeviceTracker(DelonghiDeviceEntity, ScannerEntity):

_attr_name = None

@property
def icon(self) -> str:
"""Return the icon of the device."""
Expand Down
5 changes: 3 additions & 2 deletions custom_components/delonghi_primadonna/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ async def async_setup_entry(

class DebugInput(DelonghiDeviceEntity, TextEntity):

Check failure on line 22 in custom_components/delonghi_primadonna/text.py

View workflow job for this annotation

GitHub Actions / Lint

expected 2 blank lines, found 1
"""Implementation debug input."""

_attr_name = None

async def async_set_value(self, value: str) -> None:
await self.device.send_command(value)

Check warning on line 28 in custom_components/delonghi_primadonna/text.py

View workflow job for this annotation

GitHub Actions / Lint

blank line contains whitespace
@property
def available(self) -> bool:
return device.notify
return device.notify

Check failure on line 31 in custom_components/delonghi_primadonna/text.py

View workflow job for this annotation

GitHub Actions / Lint

undefined name 'device'

0 comments on commit 497c5b8

Please sign in to comment.