Esempio n. 1
0
 def get(self, request):
     """Return all data needed to bootstrap Home Assistant."""
     return self.json({
         'config': self.hass.config.as_dict(),
         'states': self.hass.states.async_all(),
         'events': api.async_events_json(self.hass),
         'services': api.async_services_json(self.hass),
         'panels': PANELS,
     })
Esempio n. 2
0
 def get(self, request):
     """Return all data needed to bootstrap Home Assistant."""
     return self.json({
         'config': self.hass.config.as_dict(),
         'states': self.hass.states.async_all(),
         'events': api.async_events_json(self.hass),
         'services': api.async_services_json(self.hass),
         'panels': PANELS,
     })
    def get(self, request):
        """Return all data needed to bootstrap Home Assistant."""
        hass = request.app['hass']

        return self.json({
            'config': hass.config.as_dict(),
            'states': hass.states.async_all(),
            'events': api.async_events_json(hass),
            'services': api.async_services_json(hass),
            'panels': hass.data[DATA_PANELS],
        })
Esempio n. 4
0
    def get(self, request):
        """Return all data needed to bootstrap Home Assistant."""
        hass = request.app['hass']

        return self.json({
            'config': hass.config.as_dict(),
            'states': hass.states.async_all(),
            'events': api.async_events_json(hass),
            'services': api.async_services_json(hass),
            'panels': hass.data[DATA_PANELS],
        })