New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use DeviceInfo Class T-V #58445
Use DeviceInfo Class T-V #58445
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good for vizio, thanks!
@@ -180,27 +181,27 @@ async def async_update(self) -> None: | |||
is_on = await self._device.get_power_state(log_api_exception=False) | |||
|
|||
if is_on is None: | |||
if self._attr_available: | |||
if self.available: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a deliberate change?
_LOGGER.warning( | ||
"Lost connection to %s", self._config_entry.data[CONF_HOST] | ||
) | ||
self._attr_available = False | ||
return | ||
|
||
if not self._attr_available: | ||
if not self.available: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a deliberate change?
"model": await self._device.get_model_name(log_api_exception=False), | ||
"sw_version": await self._device.get_version(log_api_exception=False), | ||
} | ||
if not self.device_info: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a deliberate change?
"manufacturer": self._element.manufacturer, | ||
"model": self._element.product, | ||
} | ||
return DeviceInfo( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert all the changes that don't have tests and you haven't tested.
Breaking change
Proposed change
Use DeviceInfo Class T-V
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: