Skip to content

Commit ec7912e

Browse files
Added some more error info if device fails setup
1 parent cb01137 commit ec7912e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/panasonic_cc/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
6969
api_device = PanasonicApiDevice(hass, api, device)
7070
await api_device.update()
7171
hass.data[PANASONIC_DEVICES].append(api_device)
72-
except:
73-
_LOGGER.warning(f"Failed to setup device: {device['name']}")
72+
except Exception as e:
73+
_LOGGER.warning(f"Failed to setup device: {device['name']} ({e})")
7474

7575
if hass.data[PANASONIC_DEVICES]:
7676
for component in COMPONENT_TYPES:

0 commit comments

Comments
 (0)