(self, ent_reg: EntityRegistry, dev_reg: DeviceRegistry)
return entity_entry, device_entry
Fetch the entity and device entries.
Fetch the entity and device entries.
Fetch the entity and device entries .
async def _get_entity_and_device(self, ent_reg: EntityRegistry, dev_reg: DeviceRegistry) -> \
            tuple[RegistryEntry, DeviceEntry] | tuple[None, None]:
        """Fetch the entity and device entries."""
        entity_entry = ent_reg.async_get(self.entity_id)
        if not entity_entry:
            return None, None

        device_entry = dev_reg.devices.get(entity_entry.device_id)
        return entity_entry, device_entry
async def _get_entity_and_device ( self , ent_reg : EntityRegistry , dev_reg : DeviceRegistry ) -> tuple [ RegistryEntry , DeviceEntry ] | tuple [ None , None ] : entity_entry = ent_reg . async_get ( self . entity_id ) if not entity_entry : return None , None device_entry = dev_reg . devices . get ( entity_entry . device_id ) return entity_entry , device_entry