|
|
@@ -53,7 +53,11 @@ class TuyaLocalEntity:
|
|
|
@property
|
|
|
def entity_category(self):
|
|
|
"""Return the entitiy's category."""
|
|
|
- return EntityCategory(self._config.entity_category)
|
|
|
+ return (
|
|
|
+ None
|
|
|
+ if self._config.entity_category is None
|
|
|
+ else EntityCategory(self._config.entity_category)
|
|
|
+ )
|
|
|
|
|
|
@property
|
|
|
def icon(self):
|